package com.xuecheng.framework.exception;

import com.xuecheng.framework.model.response.ResultCode;

/**
 * @author gongfeiyue
 * @date 2020/5/18 14:44
 * @Description 定义异常抛出类  目的：封装抛出的异常
 */
public class ExceptionCast {
  //使用此静态方法抛出自定义异常 (写成final就不能被外部调用了)
  public static void cast(ResultCode resultCode){
    throw new CustomException(resultCode);
  }
}
